/*
 * Copyright © 2018 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import '../../../styles/variables.scss';

$bg-color: $grey-08;
$border-color: $grey-03;
$table-color: white;
$grid-link-color: $grey-01;
$empty-color: $grey-02;
$active-border-color: $green-01;

.reports-list-container {
  .customizer-container {
    border-bottom: 2px solid $border-color;
  }

  .list-view {
    padding: 0 25px;
    background-color: $bg-color;
  }

  .section-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 40px;
  }

  .list-container {
    padding: 10px 10px 40px;

    &.empty {
      padding: 50px 0 75px;
      font-size: 16px;
      font-weight: bold;
      line-height: 2;
      color: $empty-color;
    }

    &.grid-wrapper {
      clear: right;
    }
    .grid.grid-container {
      max-height: 100%;
      height: 100%;
      grid-template-rows: 45px;
      background-color: $table-color;

      .grid-header,
      .grid-body {
        .grid-row {
          grid-template-columns: 1fr 250px 250px 50px;
        }

        .grid-link {
          color: $grid-link-color;

          &.active { border: 2px solid $active-border-color; }

          &.not-allowed { cursor: not-allowed; }
        }
      }

      .grid-header { font-weight: bold; }
    }

    .report-name { font-size: 14px; }

    .generating {
      span.fa { margin-right: 5px; }
    }
  }

  .reports-list-action-popover {
    display: inline-block;

    .popper {
      padding: 10px;
      text-align: left;

      .option { cursor: pointer; }
    }
  }
}
